package net.int0r.gscore.connector;

import java.util.ArrayList;

import org.apache.http.NameValuePair;
import org.apache.log4j.Logger;

import net.int0r.gscore.gobjects.Spot;
import net.int0r.gscore.util.GJSONObject;
import net.int0r.gscore.util.GowallaConnector;

public class SpotConnector {
	
	private static Logger log = Logger.getLogger(SpotConnector.class);

	public static Spot getSpot(int spotId) {
		ArrayList<NameValuePair> urlParms = new ArrayList<NameValuePair>();
		GJSONObject jsobj = GowallaConnector.getJSONObj(urlParms, "/spots/"+spotId);
		log.debug(jsobj.names().toString());
		return new Spot(jsobj);
	}
}
